const browserslist = require('../config/browserslist.conf')
module.exports = {
    "presets": [
        ["env", {
            "targets": {
                "browsers": browserslist,
                "node": "current"
            },
            "useBuiltIns": true,
            // modules: false,
            // loose: true
        }],
    ],
    "plugins": [
        "transform-decorators-legacy",//js装饰器@
        "transform-class-properties",
        "transform-object-rest-spread",//对象使用spread操作符 obj2 = {...obj1};
        ["transform-react-jsx", { "pragma": "h" }],
    ]
}

